package cn.lovemmd.model.mapper;

import cn.lovemmd.model.pojo.Code;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CodeMapper extends BaseMapper<Code> {
    @Select("select c_status from model_sys_code where c_code=#{code}")
    Integer FindCodeStatus(String code);
    @Select("select c_code from model_sys_code where c_code=#{code}")
    String FindCode(String code);
    @Update("update model_sys_code set c_status=1 where c_code=#{code}")
    Integer updateCodeStatus(String code);
}
